import request from '@/utils/request'

// 查询所有班级
export const queryAllApi = (name,begin,end,page,pageSize)=> request.get('/clazzs',{params:{name,begin,end,page,pageSize}})
// 根据id查询班级
export const queryClazzByIdApi = (id) => request.get('/clazzs/' + id)
// 删除班级
export const delClazzApi = (id) => request.delete("/clazzs/" + id)
// 新增班级
export const addClazzApi = (clazz) => request.post('/clazzs', clazz)
// 修改班级
export const updateClazzApi = (clazz) => request.put('/clazzs', clazz)
// 查询所有班级
export const queryAllClazzApi = () => request.get('/clazzs/list')